Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analog move #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Analog move #9

wants to merge 3 commits into from

Conversation

LeifMessinger
Copy link

Fixes controller input. At least for walking around.

Gotta get back to playing jumper

Before, it would slow you down if you looked at the ground While
FromYaw(rot.Yaw()) is ugly, rot is quaternions, and I need a single yaw
value. I'd like for there to be a rot.WithPitch or something similar,
even if it just does Rotation.FromAngles(rot.Angles().WithPitch()).

Also, decided not to normalize the controller, so if you press lightly,
your character walks.
It kinda sucks that with the amount of friction the floor has, there's a
very fine line between walking and running. The good news is that
there's a massive deadzone due to that, so you can safely play the game
on your keyboard with the controller plugged in, and it won't throw you
off the edge. I think in the previous commit, it would do that. :(

That reminds me, I gotta make it more strict with the NearlyZero, just
in case someone is holding Forwards and Backwards on their keyboard, and
their controller is plugged in.
@LeifMessinger
Copy link
Author

@bakscratch 🥺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant